ci: add ghactor lint + doctor gate for workflow changes#21
Merged
kdairatchi merged 1 commit intomainfrom Apr 18, 2026
Merged
Conversation
Gates every .github/workflows/** change through ghactor (kdairatchi/ghactor v0.2.0) so supply-chain drift and workflow security regressions are caught at PR time. Runs on push/PR when workflows change, plus a weekly schedule so upstream action releases surface as a step-summary delta even without a workflow-file change. Note: installs ghactor from a private module — requires either the GHACTOR_INSTALL_TOKEN secret (a PAT with repo:read on kdairatchi/ghactor) or falls back to GITHUB_TOKEN (works once ghactor is public). Git URL rewrite authenticates the go install fetch.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds `.github/workflows/ghactor.yml` — a CI job that runs `ghactor` against every change to `.github/workflows/**`:
Also runs on a weekly cron (Mon 05:17 UTC) so upstream action releases surface as a PR-able delta even when no workflow file changes.
Why
Workflows drift. Unpinned SHAs, missing timeouts, over-broad permissions, stale actions — all become supply-chain blind spots if caught only at human review. ghactor encodes these as hard rules and runs them at PR time.
Current main is `100/100` via `ghactor doctor` — this wiring keeps it there.
Access note
Installs from the (currently private) `kdairatchi/ghactor` module. The job supports either:
Recommend flipping `kdairatchi/ghactor` public and removing the fallback comment, or provisioning the secret.
Test plan
🤖 Generated with Claude Code